package edu.siu.math.egut.main;

import java.io.IOException;

import edu.siu.math.egut.io.Algorithms;
import edu.siu.math.egut.util.Group;

public class StructureConstants {

    /**
     * @param args
     */
    public static void main(String[] args) {

	try {
	    args=DPR_WriteMathematicaSetup.checkArgs(args);
	    Group g = Group.getGroup(args[2]);
	    int[][] vRoots = DPR_WriteMathematicaSetup.getPieceRoots(args[0], args[1], args[2]);
	    for(int i =0; i< vRoots.length; i++)
		for(int j=i+1; j<vRoots.length; j++)
		    if(g.getStructureConstant(vRoots[i], vRoots[j])!=0)
			System.out.println(
				Algorithms.tupleToShortString(vRoots[i])+" "+
				Algorithms.tupleToShortString(vRoots[j])+" "+
				g.getStructureConstant(vRoots[i], vRoots[j])
				);

	    
	} catch (IOException e) {
	    // TODO Auto-generated catch block
	    e.printStackTrace();
	}
	
	
    }

}
